<template>
    <div>
        路由测试
    </div>
    <div>
        <RouterLink to="/home">首页</RouterLink>
        <RouterLink :to="{name:'xinwen'}">新闻</RouterLink>
        <RouterLink :to="{path:'/about'}">关于</RouterLink>
    </div>
    <div>
        <RouterView></RouterView>
    </div>
</template>

<script lang="ts" setup name="App">
    import {RouterView,RouterLink} from 'vue-router'

</script>

<style>
.hello{
    background-color: #ddd;
    box-shadow: 0 0 10px;
    border-radius: 10px;
}
</style>